Feature request: create log of build environment settings and flags
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
It would be very useful if Snapcraft provided a complete build log of the internal environment of the VM or container instance, including:
- Versions of the OS and tools used, e.g.: Ubuntu 22.04 container, Snapcraft 7.3.1
- Versions of compilers and build tools used with each part/plugin, e.g.: gcc 12.2
- Compilation flags used for each part/plugin, e.g.: CFLAGS += -std=c99 -Wall -Wextra -pedantic -MMD -ggdb
- Environment variable overrides (global and per part)
- Any other build metadata
This information would be optionally available via a command-line flag to developers so they can share exact circumstances of their snap build to others, and/or allow for easier debugging of build-related problems, e.g.: builds done natively versus say Docker, builds with certain build package overrides, differences in compilation flags between snap and non-snap versions, etc.
The information would be provided as a text log when the flag is used.
Evaluation history
No evaluation history available.